project(jstring_test)

cmake_minimum_required(VERSION 3.0)

add_compile_options(-std=c++11 -Wall)

set(JXQLIB_PATH ${PROJECT_SOURCE_DIR}/../../build)

#--------------------------------------------------------------------------------------------------

include_directories(${JXQLIB_PATH}/include)

set(SRC_LIST main.cpp)

add_executable(${PROJECT_NAME} ${SRC_LIST})

#--------------------------------------------------------------------------------------------------

if(WIN32)
	if(MSVC)
		target_link_libraries(${PROJECT_NAME} ${JXQLIB_PATH}/JXQCore.lib)
	else()
		target_link_libraries(${PROJECT_NAME} ${JXQLIB_PATH}/libJXQCore.dll)
	endif()

elseif(UNIX)
	target_link_libraries(${PROJECT_NAME} ${JXQLIB_PATH}/libJXQCore.so)

endif()
